package com.etc.entity;

import java.util.Date;

public class Comment {
    @Override
	public String toString() {
		return "Comment [comid=" + comid + ", comcontent=" + comcontent + ", condate=" + condate + ", userid=" + userid
				+ ", traid=" + traid + ", dyid=" + dyid + ", user=" + user + ", travels=" + travels + ", dynamic="
				+ dynamic + "]";
	}

	private Integer comid;

    private String comcontent;

    private Date condate;

    private Integer userid;

    private Integer traid;

    private Integer dyid;
    
    private User user;

    private Travels travels;
    
    private Dynamic dynamic;
    public Comment() {
		super();
	}

	public Travels getTravels() {
		return travels;
	}

	public void setTravels(Travels travels) {
		this.travels = travels;
	}

	public Dynamic getDynamic() {
		return dynamic;
	}

	public void setDynamic(Dynamic dynamic) {
		this.dynamic = dynamic;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Comment(String comcontent, Date condate, Integer userid, Integer traid) {
		super();
		this.comcontent = comcontent;
		this.condate = condate;
		this.userid = userid;
		this.traid = traid;
	}

	public Comment(String comcontent, Integer userid, Integer dyid, Date condate) {
		super();
		this.comcontent = comcontent;
		this.condate = condate;
		this.userid = userid;
		this.dyid = dyid;
	}

	public Integer getComid() {
        return comid;
    }

    public void setComid(Integer comid) {
        this.comid = comid;
    }

    public String getComcontent() {
        return comcontent;
    }

    public void setComcontent(String comcontent) {
        this.comcontent = comcontent == null ? null : comcontent.trim();
    }

    public Date getCondate() {
        return condate;
    }

    public void setCondate(Date condate) {
        this.condate = condate;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getTraid() {
        return traid;
    }

    public void setTraid(Integer traid) {
        this.traid = traid;
    }

    public Integer getDyid() {
        return dyid;
    }

    public void setDyid(Integer dyid) {
        this.dyid = dyid;
    }
}